/**
 * HZWQ.com Inc.
 * Copyright（c）2013-2024 All Rights Reserved.
 */
package com.app.redis.controller;

import com.app.redis.config.MyAppConfig;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.time.LocalDate;

/**
 * @author zhangch
 * @version $Id: TestController.JAVA, V 0.1 2024-10-14 20:07 zhangch
 */
@RestController
@RequestMapping
public class TestController {

    @Autowired
    public MyAppConfig config;

    @GetMapping("/time")
    public String test1(LocalDate time) {
        System.out.println(time);
        System.out.println(config.getTime());
        return "ok";
    }

}